//
//  NetworkConnectionMonitor.h
//  Words2
//
//  Created by Mathieu Tozer on 1/09/06.
//  Copyright 2006 __MyCompanyName__. All rights reserved.
//

//Each dictionary which is remote will have one of these when it is connected, 
//to monitor the state of the connection
//The callback function should change one or more of the attributes of this class so that 
//the owner dictionary can check them.
#import <Cocoa/Cocoa.h>


//#import <CoreFoundation/CoreFoundation.h>
//#import <SystemConfiguration/SystemConfiguration.h>


@interface NetworkConnectionMonitor : NSObject {
	bool isAvailable; //yes when reachable, no when not. Modified by the callback function
}

-(void)connectAndMonitorConnectionTo:(NSString *)server;

- (void)stopMonitoring;
- (bool)isAvailable;
- (void)setIsAvailable:(bool)value;


@end
